#ifndef ResultView_H
#define ResultView_H

#include <QtGui>
#include "..\core\src\AssetManager.h"
#include "ResultModel.h"

namespace Xps
{
	class ResultView : public QWidget
	{
		Q_OBJECT

		QItemSelectionModel* selectionmodel;
		QLineEdit* value;
		QLineEdit* tolerance;
		QPushButton* exact;
		QPushButton* range;
		QPushButton* fade;
		QPushButton* ok;
		QFrame* frame;
		QTableView* table;
		XpsAssets::AssetManager* am;
		QWidget* attributeeditor;
		ResultModel* rm;
		
	private slots:
		void set();
		void makeExact();
		void makeRange();
		void makeFade();
		void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected);

	public:
		ResultView(XpsAssets::AssetManager* am, QWidget* parent = 0);
		void clear() { rm->clear(); };

	};
}
#endif